<!DOCTYPE html>
<html>
<head>
<body>
	<title>Tip about terminal</title>
		<!--this is a line of note...-->
	<script>
		document.write("<h1>PART 1: The setting about the automatic completion on Mac terminal</h1>");
		document.write("<b><br>This is the first part of my work!</br>All the operation are finished on the terminal by command line</b>");
	</script>
	<p><body bgcolor="white">Open your terminal by click the icon of terminal</p>
	<p><br>
		1. switch to the present user direct.</br>
	<pre style="background-color: rgb(238, 238, 238); border-color: rgb(221, 221, 221); font-size: 14px; ">cd home
	</pre>
	<br>
		2. check whether there exists the file named .inputrc</br>
	<pre style="background-color: rgb(238, 238, 238); border-color: rgb(221, 221, 221); font-size: 14px; ">ls -a
	</pre>
	<br>
		3. If the file didn't exist, create a new empty file by the following command.</br>
	<pre style="background-color: rgb(238, 238, 238); border-color: rgb(221, 221, 221); font-size: 14px; ">touch .inputrc
	</pre>
	<br>
		4. If there is a file named .inputrc, edit it directly by the following command</br>
	<pre style="background-color: rgb(238, 238, 238); border-color: rgb(221, 221, 221); font-size: 14px; ">open -e .inputrc
	</pre>
	and your system will use the default editor to open the file. <br>copy and paste the following code to the file.</br>
	<pre style="background-color: rgb(238, 238, 238); border-color: rgb(221, 221, 221); font-size: 14px; ">
	<br>set show-all-if-ambiguous on</br><br>set completion-ignore-case on</br><br>TAB: menu-complete</br>
	</pre>
	<br>
		5. press <button>command</button> and <button>S</button> to save the change and close the file, <strong>restart</strong> your terminal</br>
	<br>The origin issue is <a href="https://blog.csdn.net/qq_38834590/article/details/89881858"target="_blank"><b>the origin blog</b></a>, if you have any question, you can send an emal by <a href="mailto:iamzhouling@163.com"><i>iamzhouling@163.com</i></a>
	</p>
	<p>
	<script>
		document.write("<h1>PART 2:The installation of pip's source</h1>");
		document.write("<b>Here comes the second part of my work!</b>");
	</script>
	<br>
		When I started to learn python, I find it is difficult for me to install the packet by pip. I don't konw what happend because wherever i am, the spped of network is terrible! </br><br>I research for many documents and finally I find the solution to the problem. That is what I introduce in the following contents.
	</br>

	<button 
		type="button" onclick="alert('I just want to show you there is nothing but a button!')">Click Me</button>

	<p id="demo">
		Click the follow button, yu will find the answer!
	</p>
	<script>
		function myFunction()
		{
			x=document.getElementById("demo");  //find the element
			x.innerHTML="https://blog.csdn.net/qq_38834590/article/details/89305921";    // change the content
		}
	</script>
	<button type="button" onclick="myFunction()">Click Me</button>
	</p>
	<p>
	<script>
		function changeImage()
		{
			element=document.getElementById('myimage')
			if (element.src.match("bulbon"))
			  {
			  	element.src="./p2.jpg";
			  }
			else
			  {
			  	element.src="./p2.gif";
			  }
		}
	</script>
		<img id="myimage" onclick="changeImage()" src="./p2.jpg">
		<p id="demo1">
			You can also Click the picture above to change the picture and the following button to change the color of the sentences!
		</p>
	<script>
		function myFunction()
		{
			x=document.getElementById("demo1") //
			x.style.color="#ff0000";          //
		}
	</script>
	<button 
		type="button" onclick="myFunction()">Click Me </button>
	</br>
	</b>
	<p>Input number please. If the value is not number, the browser will pop-up the dialog box.</p>
	<input id ="demo2" type="text">
	<script>
		function dialogFunction()
		{
			var x=document.getElementById("demo2").value;
			if(x==""||isNaN(x))
			{
				alert("Not NUmeric!");
			}
		}
	</script>
	<button type="button" onclick="dialogFunction()">Click Here</button>
	</p>
</body>
</head>
</html>

